<template>
  <van-cell @click="$router.push(`/detail/${item.houseCode}`)">
    <div class="list">
      <img :src="`http://121.199.51.160:8080${item.houseImg}`" alt="" />
      <div class="text">
        <h3>{{ item.title }}</h3>
        <p>{{ item.desc }}</p>
        <span v-for="(pre, ind) in item.tags" :key="ind">{{ pre }}</span>
        <div class="price">{{ item.price }} <i>元/月</i></div>
      </div>
    </div>
  </van-cell>
</template>

<script>
export default {
  props: {
    item: Object
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
.list {
  height: 120px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 5px;
}

.list img {
  width: 106px;
  height: 80px;
}
.list .text {
  padding-left: 15px;
}
.list .text h3 {
  font-size: 15px;
  margin: 0;
}
.text p {
  font-size: 12px;
  color: #afb2b3;
  margin: 3px 0;
}
.text span {
  color: #39becd;
  background: #e1f5f8;
  display: inline-block;
  font-size: 12px;
  border-radius: 3px;
  padding: 4px 5px;
  margin-right: 5px;
  line-height: 12px;
}
.price {
  font-size: 16px;
  font-weight: bolder;
  color: #fa5741;
}
.price i {
  font-size: 12px;
}
</style>
